# coding = utf-8

import configparser

config = configparser.ConfigParser()
config["default"] = {
    "name1": 2,
    "name2": "zzz",
    "name3": "qwe"
}

config["wc.org"] = {}
config["wc.org"]["sex1"] = "boy"
config["wc.org"]["sex2"] = "girl"

config["zhutou3.org"] = {}
twa = config["zhutou3.org"]
twa["locale"] = "luoyang"

with open("example.ini", "w") as configfile:
    config.write(configfile)

